home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Webster's Millennium Amer…Sign Language Dictionary
/
ASL.ISO
/
mac
/
SHARED.cst
/
00027_Script_Login Script
< prev
next >
Wrap
Text File
|
2001-09-17
|
2KB
|
60 lines
--∂ï
on login
global gLoginFlag,myWindow,gCurrentUser,loginFlag
-----------------
if not gLoginFlag then
-----------------
if objectP(myWindow) then
close myWindow
forget myWindow
--finishMovie
else
hideEntry "all"
sound Stop 3
set myWindow to window "login.dir"
set the windowType of window "login.dir" = 3
-----------------
if the machinetype = 256 then
set the fileName of myWindow to the pathName & "MIAWs\login.dir"
else
set the fileName of myWindow to the pathName & "MIAWs:login.dir"
end if
-----------------
if the movieName = "main.dir" or the movieName = "intro.dir" then
set myWindowRect to rect(the stageLeft + 26, the stageTop + 202, the stageLeft + 283, the stageTop + 328)
set the rect of myWindow to myWindowRect
else
put the rect of myWindow into currentRect
set the rect of myWindow to centerRect(currentRect)
end if
-----------------
set the titleVisible of myWindow to FALSE
set the modal of myWindow to TRUE
-----------------
if not (gCurrentUser = "") and not (gCurrentUser = "noneUser") and not voidP(gCurrentUser) then
tell myWindow to put "Saving data for: "&gCurrentUser&" This may take several minutes." into field "asci alert message placeholder"
tell myWindow to go frame "saving"
enableMenu(FALSE)
pupPal(myWindow)
open myWindow
moveToFront myWindow
else
enableMenu(FALSE)
tell myWindow to put "" into field "login"
pupPal(myWindow)
open myWindow
moveToFront myWindow
end if
-----------------
end if
-----------------
end if
-----------------
if objectP(myWindow) then
set gLoginFlag = 1
go the frame
end if
-----------------
end
--do "global gLoginFlag"&return&"set gLoginFlag=0"&return&"login"